package generic;

import utils.Log;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class SetsTest {

    public static void main(String[] args) {

        Set<Integer> a = new HashSet<>();
        Set<Integer> b = new HashSet<>();

        a.addAll(Arrays.asList(1, 2, 3, 4, 5, 6));
        b.addAll(Arrays.asList(5, 6, 7, 8, 9, 10));

        Log.vn(Sets.union(a, b));
        Log.vn(Sets.intersection(a, b));
        Log.vn(Sets.difference(a, b));
        Log.vn(Sets.complement(a, b));
    }
}
